<load file="__PUBLIC__/public.html"/>
<div class="setup">

    <div id="hd_rbac">
        <?php
        foreach($node as $v){
        ?>
        <h1>{$v['title']}<strong>({$v['name']})</strong>&nbsp;&nbsp;
            <a href="__CONTROL__/showaddnode/nid/{$v['nid']}/level/{$v['level']}" style="font-size:14px;">
                <img src='__TPL__/public/img/setup/add.png' width='16' height='16' />&nbsp;添加控制器
            </a>&nbsp;&nbsp;
            <a href="__CONTROL__/delnode/nid/{$v['nid']}" style="font-size:14px;">
                <img src='__TPL__/public/img/setup/remove.png' width='16' height='16' />&nbsp;删除应用
            </a>
        </h1>
        <?php
        if(isset($v['node']) && is_array($v['node'])){
        foreach($v['node'] as $m){
        ?>
        <table>
            <thead>
                <tr>
                    <th>
                        {$m['title']}<strong>({$m['name']})</strong>
                        <a href="__CONTROL__/showaddnode/nid/{$m['nid']}/level/{$m['level']}">
                            添加
                        </a>&nbsp;&nbsp;
                        <a href="__CONTROL__/delnode/nid/{$m['nid']}">
                            删除
                        </a>
                    </th>
                </tr>
            </thead>
                <?php
                if(!empty($m['node'])){
                ?>
            <tbody>
                <tr>
                    <td>
                        <ul>
                            <?php
                            foreach($m['node'] as $j){
                            ?>
                            <li>
                                {$j['title']}<strong>({$j['name']})</strong>
                                <a href="__CONTROL__/delnode/nid/{$j['nid']}">
                                    删除
                                </a>

                            </li>
                            <?php
                            }
                            ?>
                        </ul></td></tr></tbody>
            <?php
            }
            ?>
        </table>
        <?php
        }
        }
        }
        ?>
    </div>

</div>

</body>
</html>
